package com.lzj.demo.domain.bo;

import com.lzj.common.core.domain.BaseEntity;
import com.lzj.common.core.validate.AddGroup;
import com.lzj.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 测试测试业务对象 test_table
 *
 * @author lzj
 * @date 2024-08-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TestTableBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 文件
     */
    @NotBlank(message = "文件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String file;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
